package com.hotline.communication.service.impl;

import com.hotline.communication.dto.AreaChooseDTO;
import com.hotline.communication.entity.AreaChoose;
import com.hotline.communication.mapper.AreaChooseMapper;
import com.hotline.communication.service.AreaChooseService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service
@Slf4j
public class AreaChooseServiceImpl implements AreaChooseService {

    @Resource
    private AreaChooseMapper areaChooseMapper;

    @Override
    public void insertBatch(List<AreaChoose> list) {
        areaChooseMapper.insertBatch(list);
    }

    @Override
    public void update(AreaChoose areaChoose) {
        areaChooseMapper.update(areaChoose);
    }

    @Override
    public void updateByCallId(AreaChoose areaChoose) {
        areaChooseMapper.updateByCallId(areaChoose);
    }

    @Override
    public List<AreaChoose> selectList(AreaChooseDTO areaChooseDTO) {
        return areaChooseMapper.selectList(areaChooseDTO);
    }

    @Override
    public Integer countByCallId(String callId) {
        return areaChooseMapper.countByCallId(callId);
    }

    @Override
    public AreaChoose selectOne(AreaChooseDTO areaChooseDTO) {
        return areaChooseMapper.selectOne(areaChooseDTO);
    }
}
